Mobile phone has internet but desktop can't connect

What could be the potential cause of this? I didn’t install anything new. Everything was working hours ago.

Restarting got me online for a minute or so before becoming offline again.

The issue seems to have resolved by itself but just in case: