I’ve never gotten a virus on the phone. If you really think you have one, back up your data and reset the phone. Then check for a virus. This will require you to setup anew.
Not a hundred percent sure that will remove one. Can a virus infect the reset part of the phone? Don’t know.