Virus can make your device useless if you are not aware of it. So if you want to secure your tablet from this malicious attack, you have to follow some steps:
Install antivirus in your device
Stop clicking the ads appear on your screen
Don’t download and open any data from a person you are not acquainted.