My answer would be, just like what I read when I first come here in Linux, there's a virus for Linux, yes, but it is different from Windows. And most anti-virus scans windows virus.
Virus is also a program created by programmers/developers who are already tired of their life. Basically, these viruses will only be installed if you allow it to be installed. The case with most linux distro is, everything we install is with our permission. Whether it was a snap, flatpak, appimage, packages, updates etc.
When it comes to something like trojans that usually downloaded together with applications/dramas/movies that you downloaded from untrustworthy source, still, it will not run without your permission.
Adwares, Spywares, Malwares etc are also softwares.
Whether it was in Windows or in Linux, the best way to avoid these more than anti-viruses is to see if the one you are clicking to run is a trustworthy application or not. If the link that you are visiting is secure or not.
Personally, I don't use or thinking of using anti-virus because this is what I think: Linux have a lots of distro. If I'm the one who will create a virus for this one, I think before I got to successfully create one for desktop users, my mind already blown up in studying these 100+ distro compare if I create for Windows. Not to mention that most linux desktop user modifies a lot in both back and front end. So I also wonder how much percentage for a virus creator to successfully modifies your OS that you already modified from its original state. Servers can, and I heard more often be targeted, because you cannot just easily change everything in server OS. It's a server.