Cell Phones should not get hot enough to cause problems when charging. If this occurs, the reason could be a damaged battery, a poor-quality charging cable, or a problem with the port. First try replacing the cable. If this doesn't help, it's time think about replacing the battery.
Ways to Cool Your Phone and Keep It Efficient
Have you been hit by your smartphone getting too hot and slowing—or worse, shutting down? If so, try the following steps to cool your phone down again:
(((Remove the phone’s case, Switch on airplane mode to disable all connectivity, Move it from direct sunlight Direct a fan at your phone (but don’t put it in a fridge, freezer, or cooler)Reduce the display brightness)))
Once you’ve done this, try the following to avoid further overheats:
Use Battery Saver mode Clean up your phone to remove junk files Reduce WiFi, Bluetooth, and GPS use unless needed
Not only should your phone stop overheating again, but the battery should last longer! Beyond overheating, there are plenty of apps you can use to check if your Android is functioning properly.