I have experienced my iPhone X getting too hot, but not so recently, so make sure you have the latest software update. The best fix that I’ve found when over-heating happens is to simply turn off your phone until the back cools down and then to restart it. Another trick is to check your location...