The iPad does a great job of fighting viruses, malware, and the dark side of the Internet, so if you see a message on your iPad saying you have a virus, don't panic. There are currently no known viruses that target the iPad, and it's possible that such a virus never will.
How to Remove a Virus from ANY iPad! (2023)
In technical terms, a virus is a piece of code that replicates itself by making a copy in another piece of software on your computer. But unlike Windows PCs, which have a very open file system, iPadOS doesn’t allow one app to directly access another app’s files, preventing a potential virus from replicating itself.
If you visit a website and see a message claiming that your device is infected with a virus, leave the site immediately. These pop-up messages are scams designed to scare you into installing malware under the pretense of improving your device’s security.
Furthermore, you don’t need to install virus protection on your iPad. Unlike a Windows computer, where running real-time virus protection software is almost a requirement, the iPad doesn’t need full-time virus protection.