The only folk I know that talk about an iOS virus are spammers that have something to sell you.
This model shipped last year so check your warranty first.
Okay, so my phone randomly turns itself off, and a white screen with a black apple logo comes up and it goes all pixelated and sometimes it will go incredibly pixelated as if the screen was broken before going off, and other times it goes less pixelated and is stuck on that screen. When I hard reset my phone it works for a few minutes before turning off again. I tried completely factory resetting my phone and that only made it worse. I was wondering if it was broken or if it had a virus. But my phone isn't jailbroken.
Would really appreciate help on whether to take it back and spend money on getting it fixed or not.