>>5533221
Not a bad question fren.
If you don't mind voiding the warranty you can go through a tedius process to crack the phone and install a custom ROM on it, but it's not easy and can brick your phone if you mess up.
https://www.xda-developers.com/what-is-custom-rom-android/
That is just the start if you want to really get into all the details:
https://forum.xda-developers.com/general/security/tuto-how-to-secure-phone-t2960077
On a side-note, here's a good privacy guide for configuring the FF browser and disabling the snooping - https://www.bestvpn.com/firefox-privacy-security-guide/