I have seen reports of this every single iOS release there has been in almost a quarter of a century. On the Community here we know they are coming as soon as Apple announces an update.
Changes in software such as upgrades may introduce new features which may add to power drain and heat generation. Check Settings > Battery to see if there are apps running that use a lot of power. If there are, decide if you can turn off a service such as Settings > General > Background app refresh when an app is in the background, or Settings > Privacy > Location Services. Read this support article to learn about the battery health feature —> iPhone battery and performance - Apple Support
If you have just updated system software, read posts about indexing in this thread: iPhone 15 overheating - Apple Community
An iOS update may require subsequent reorganization of files and a short term increase in heat and battery drain until the task is done. Wait a few days and see if the issue persists.
If you think there is a problem with a device, have Apple inspect it. Go to this page to find your nearest Apple Authorized Service Provider (AASP) or Apple Authorized Distributor (AAD) --> Find Locations
How to make a Genius Bar appointment
1. Go to Genius Bar Reservation and Apple Support Options - Apple
2. Go to "Get hardware help".
3. Select your hardware and continue selecting options requiring replacing parts until you see "Bring in for Repair"
4. Sign in with your Apple ID
*"Your iPhone might get slightly warmer while it charges." - from: How to use your MagSafe Battery Pack - Apple Support
iphone/important-safety-information-iph301fc905/ios
** Post by contributor Lawrence Finch explaining the basic physics. iPhone 15 Pro heating up with protective … - Apple Community
***Section about "Prolonged heat exposure" in this support article --> Official Apple Support