If this occurs when gaming it suggests that the graphics card is overheating when being worked to its maximum.
I would suggest for a start taking the card out and giving it a clean if dusty.
Likewise make sure there is good airflow through the case.
Galaxy Note 8 vs iPhone X
The secrets of creating gory VFX
How to update iOS on iPhone or iPad
WhatsApp : comment lire vos messages sans que l’expéditeur le sache