I have been using PiHole for some time, and everything works correctly on all my devices.
I used to use Microsoft Edge as my web browser, and everything works correctly in that. However I have just tried using Safari as a browser instead, and the web blocking does not work in that.
I have disabled all the private relay and various other options on my machine, but it doesn't seem to help. I don't see any DNS queries coming from Safari.