The simple answer is your phone does not have a virus; an iPhone that is kept up to date with iOS releases is for all practical purposes immune from viruses.
If you found a profile in Settings/General/VPN & Device Management it is there because you put it there. It is not possible to install a profile without the consent of the iPhone user, and it might have been a profile for your Wi-Fi administrator. If you deleted it and everything continued to work you are safe.
But if you are still worried and want to be extra secure restore the phone to factory settings and do not restore a backup; set up the phone as new→Restore your iOS device to factory settings - Apple Support