Firefox is a great browser to switch to, it has a vast variety of customizability in configuration. It is a very flexible browser and it has helped me a lot in the past few years.
As a further suggestion on top of it, do use a custom user.js to harden your browser even more, set up your DNS Resolver to use Quad9 or any other private DNS Server like Scaleway, NextDNS, etc.
I also recommend using Oblivious DNS over HTTPS for added security.
I am on a Freedesktop Linux system hence I refered to the Archlinux Wiki in setting the beforementioned configurations up.