Currently there's some issue with brave when unlocked where it offers us the ethereum object but doesn't respond to any requests. Check what's up with that and also test on other wallets.
Issue with Brave sorted out in eb266ea654344276bc893a4800e9527539d50337, seems to be unrelated to the metamask recommended setup changes and the current thing seems ok so closing those without fixing that part
The code we need where we detect the provider etc seems to have changed again: https://docs.metamask.io/guide/ethereum-provider.html#using-the-provider
Currently there's some issue with brave when unlocked where it offers us the ethereum object but doesn't respond to any requests. Check what's up with that and also test on other wallets.