I’ve been having this issue since last Monday, my iPhone XR had randomly restarted itself, I pressed the power and volume buttons, hoping a force restart would fix the issue, but it didn’t, the device repeatedly turned on and off by itself, my uncle tried to reset it using their laptop, but it didn’t work, this makes me wonder if the device can be fixed