My IPhone XR charges up, turns on and then shuts down repeatedly
Hello,
My IPhone XR is stuck in a strange loop.
When i charge it up, it turns on instantly, almost not giving it time to charge up.
Then, when it turns on, it stays on for a few seconds and then turns off because it isn't charged up enough.
Please, i really need my phone back and most importantly what's inside.
PLEASEEE
iPhone XR, iOS 18