How to fix “This site can’t be reached … took too long to respond for some websites?

So when I open some websites this shows up: This site can’t be reached _______ took too long to respond. Try:

Checking the connection Checking the proxy and the firewall Running Windows Network Diagnostics ERR_CONNECTION_TIMED_OUT This happens only when my computer is connected to one network( and happens on Chrome, Opera,Microsoft Edge) , but when I connect it with the hotspot from my phone, the site works. Also on my other computer the same website OPENS with the same network (that didn’t work on the other computer). What should I do?