Internet recovery does not work. No bar appears and wants to connect to an network
I tried to restore my Mac Mini to factory settings however internet recovery had done nothing other than bring a globe and some wi-fi connections to connect to then I tried to connect to one of them however the wi-fi icon lit up but it never loaded with a bar. I tried Ethernet but it also had no effect. What am I doing wrong? I did test Ethernet in MacOS and I had no problems and wi-fi also worked without problem.
Mac mini 2018 or later