Qmobile M95 SPD 7731 Infected by viruses

hey! team
I got an infected Qmobile SPD 7731 Phone .
on phone screen nude images, hot videos ,
is there anyway to remove Viruses From SPD 7731 ?
None Of tools helped me i have all top tools activations .
hard reset and format the phone already tried
thanks .
only the flashing is solution ?