Hello.
Thank you for using Apple Support Communities. It sounds like you want to know if you'll get malware by clicking on a link while using different web browsers on your iPad. That's a great question to ask. We'd be more than happy to help out.
If you're visiting a website and it prompts you with a malware message/alert, you can simply clear your browsing history on that specific browser and force close the app. Once you reopen the app, you should be OK to browse the internet again. Additionally, you'll want to make sure your iPad is always fully updated to the most compatible iPadOS version available. These updates can help keep your device safe and secure from outside threats. We do have a few helpful resources that you can review below:
How to force an app to close on your iPhone, iPad, or iPod touch
Update your iPhone, iPad, or iPod touch
If you do see these malware messages/alerts in Safari, you can clear your history by following the guidance listed here:
Clear the history and cookies from Safari on your iPhone, iPad, or iPod touch
We hope this information is useful. Have a great day!