If you suspect an infection, isolate the device from your network immediately. Consult your device’s manual or manufacturer’s website for specific instructions on resetting it to factory settings. Sometimes, a professional might be needed to clean the infection or recover lost data.