I was watching a video of how to enable DNS over HTTPS on different browsers (video here:
https://www.youtube.com/watch?v=q1uvOihSaj4 ).
There is a couple of test sites to check the browser is working correctly after.
I noticed when I set it up I had an insecure connection even though the cloudflare server was working. I figured out what the problem was for me, I was using googles DNS servers. So I changed the setting in network properties to automatically obtain dns settings from isp, and after that my connection was secured.