iPhone randomly shuts off when not plugged to charge

like a week ago my phone randomly just shut off and I had to keep turning it back on then I charged it and then it turned back on and it wasn’t even dead and it turns off randomly every time my charger isn’t in my phone I don’t know what to do I might have a virus somehow idk please help mine is the only one in my house that does it I don’t understand why now I can’t even do anything with out my charger


[Re-Titled by Moderator]

iPhone 15, iOS 18

Posted on Jan 12, 2025 1:12 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 12, 2025 1:24 PM

As there has never been a virus that could infect an iPhone in the history of iPhones, your phone does not have a virus. From your description it may be a failing battery. Go to Settings/Battery/Battery Health and see what it says, and also what your maximum capacity and cycle count values are.

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iPhone randomly shuts off when not plugged to charge

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.