Please tell us some basic information before asking for help:
Model Name: Rog 2
Firmware Version: android 10 5 dec patch
Rooted or not: no
Frequency of Occurrence: when charging on use
APP Name & APP Version (If your issue relates to the app):
Phone restarting while charging if the phone is in use. Started to occur recently. Using this phone as daily for a while now.