The vast majority of viruses may be eliminated from your phone by doing a factory reset. However, this will cause all data that has been saved on your smartphone, including as images, notes, and contacts, to be deleted. Because of this, it is imperative that you make a backup of this data before you reset your device.