Have you jailbroken your iPad? If not, then it is very unlikely that you iPad has been “hacked”. If you have, well, that’s not a good thing to do!
Likewise, have you installed a Beta version of iPadOS? Beta versions of the OS can introduce all kinds of issues.
If you are concerned, create either a iCloud or iTunes backup of your iPad, the restore the iPad to Factory Settings:
Restore your iPhone, iPad or iPod to factory settings – Apple Support
The factory reset will install a fresh copy of the most recent version of iPadOS that you iPad can support - and then optionally restore your data from your backup.
Due to the system architecture of iOS/iPadOS, unless jailbroken, your iPad is not susceptible to traditional malware infection per-se. However, as with all computer systems, there are still vulnerabilities and exploits to which you remain vulnerable.
Browser-based attacks can largely be mitigated by installing a good, trusted, Content and Ad-blocking product. One of the very best and most respected within the Apple App Store - designed for iPad, iPhone and Mac - is 1Blocker for Safari.
https://apps.apple.com/gb/app/1blocker-for-safari/id1365531024