Please tell us some basic information before asking for help:
Plz figure it out.
Can you tell us more details like under what scenario it gets switched off?
Please share your current firmware version:
Go to setting => About => Software information.
Also, are you willing to share logs from your phone?
Sir here is all info. And my phone is also getting hot while using any game or internet browsing
Yes. I recently faced the same issue. Where my phone restarts itself in the midnight and once while playing pubg. This had not happened in the previous version. I guess this is an issue which comes with version 2007.47. As i have not encountered the same in previous version.