If your phone is overheating whilst you are using it, then the cause could be how much you are using it. The more you use your phone too much for a long period of time, the more damaged your phone battery is going to be. To solve it, you could repair or change the battery. Also, you could use your phone for shorter periods of time.