Your iPhone Is Overheating
Sometimes, your iPhone starts to overheat for no apparent reason. While that might be because of a performance issue, there are some things you can try to fix it.
For starters, avoid using your iPhone extensively while it’s charging. This is a surefire way to make your iPhone heat up almost instantly. In particular, you might also need to stop using demanding apps or games that are more likely to raise your iPhone’s temperature.
Your iPhone may be heating up because of a software issue from either iOS or the apps you have installed. To update iOS, go to Settings > General > Software Update and install any update available.
To update your apps, open the App Store and tap on your profile icon at the top right corner of the screen. Scroll down and update all the available apps.
Last but not least, make sure that you’re using your iPhone at the right temperature. According to Apple itself, the ideal temperature for an iPhone is anywhere between 0º and 35º C (32º to 95º F). Anything above that might cause your iPhone to overheat, so avoid high temperatures and direct sunlight on your iPhone.