Hey there HiOverheatIphone,
iOS 17.0.3 has become available and address an issue of iPhone running warmer than expected. To help troubleshoot the issue, ensure your devices are updated: Update your iPhone or iPad - Apple Support
Update your iPhone or iPad wirelessly
1. Back up your device using iCloud or your computer.
2. Plug your device into power and connect to the internet with Wi-Fi.
3. Go to Settings > General, then tap Software Update.
4. If you see more than one software update option available, choose the one that you want to install.
5. Tap Install Now. If you see Download and Install instead, tap it to download the update, enter your passcode, then tap Install Now. If you don't know your passcode, learn what to do.
Keep in mind, setting up or restoring your iPhone can cause the device to feel warm. Check out that information, and further troubleshooting, in the article below:
If your iPhone or iPad gets too hot or too cold - Apple Support
If the issue persists, reach out to Apple Support to help investigate the behavior. You can use the following link to reach out: Apple Support
Kind regards.