When your phone is hot it means there is a Software problem and that is according to researchers.
Sometimes your phone might be hot because its on charger but many time it might not be on charger and it just becomes very hot because you are using it.
Here are Five things you should do :
-If your phone has many apps try removing most of the apps that you dont use because this apps might be making the phone to run slow and become very hot.
Try updating all your apps and make sure that your phone is always on latest versions of everything as you may find out that ancient systems might be old and no longer effectively functioning.
-Reboot your phone or restart your phone and make sure that it is refreshed because sometimes it is because it has been functioning very fast with a lot of apps and this can cause a slowing down behavior and hot temps in the phone and this might damage your battery.
learn to use your phone away from the charger allow your phone to charge and be full then start using your phone as using your phone on charger damages battery or reduces battery life span and Slows down the phone.
-Lastly If all of those methods failed try resetting the phone and let it come back as a new phone and register everything again i know this is kind of difficult but it will help you.
5 tips on how to stop your phone from overheating* Avoid direct sunlight to your phone. The easiest way to prevent overheating is to keep your phone out of the sun.
* Turn off unused apps on your phone.
* Avoid turning your screen brightness up.
* Turn your phone to airplane mode.
* Take your case off.