iPhone X randomly powers / shuts off
Over the last week my iPhone X has been randomly shutting off completely. When it does this it has plenty of battery percentage left. At first, I noticed it when I would send a snap on the Snapchat app, but now it happens when I check my email, get a notification and other random times. It is happening more and more frequently. (I had to use my laptop to send this as it has restarted twice while trying to type this.) My phone is updated to iOS 11.1.2 I have already factory reset the phone and restored it to my backup once and it still does this. Does anyone know a way to fix this issue? Thanks in advance!
iPhone X, iOS 11.1.2, null