How does Tor compare to the Tor client for Desktop? Is it as secure?

Hey guys! I’m curious about the security of Tor for Android compared to the Tor Browser for desktop. Tor Browser is known for its strong security against threats like malicious JavaScript and XSS attacks. How does Tor for Android measure up in this regard? Can it reliably protect users when browsing onion websites given that they’re only viewing static content and not downloading anything shady?