s24 overheating?

Hi there, yesterday I was on video call and playing a mobile game when my phone gave me an overheating warning - though I live in Australia thid was at night-time, and I was indoors.

Does anyone have solutions for how to fix this? It sucks because I love this phone and this woukd stop me from playing a game I really like.