Hello aelwaer,
We're glad you were directed here from the related article: If your iPhone, iPad, or iPod touch gets too hot or too cold
Ensuring your iPhone is within operating temperatures is important and you've come to a great place for help. To confirm, are you only noticing this issue when charging the iPhone or does this happen with graphic intensive tasks as well? Since having this issue have you verified you're running the latest iOS? If not, update to the latest iOS using the steps below. While updating is a simple step, it can be helpful in resolving many issues.
- "Back up your device using iCloud or your computer.
- Plug your device into power and connect to the internet with Wi-Fi.
- Go to Settings > General, then tap Software Update.
- If you see more than one software update option available, choose the one that you want to install.
- 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."
Update your iPhone or iPad
In addition to updating iOS, you'll want to update applications. As Apple releases new iOS updates, app developers can release updates to ensure continued compatibility. You can find the steps for updating apps in the following article.
How to manually update apps on your Apple device
Have a great day!