Simply restarting your phone won’t wipe malware from your device, but restoring your device to its factory settings probably will. If you’re going to factory reset your device, back up your data to avoid losing it all. If you restore your phone from a backup, previously infected files could continue to infect your restored device. Use a malware and virus removal tool and clear your phone’s cache, delete your cookies, and clear your browsing history to get rid of any lingering harmful internet files.