This should be better with /e/OS or lineageOS, but you have to jump through several hoops (and often lose your warranty) when you install them instead of your default Android OS.
Unfortunately most devices block them completely, but the Pixel phones are supported (as far as I know).