

Use a DNS service like NextDNS or Control D and check the activity logs, block as needed. Or as others have said, UBlock has a custom rule creation feature. Use it. You select the elements you want to nuke, preview to see if it’s working as intended, if it is click save rule.
On Mac I’ve found Safari gets thru every time for some reason where chrome and Firefox do not. I might have the prevent IP tracking setting enabled or whatever but I never have to turn off my VPN (nor sign in) if the other browsers get flagged. Ymmv.