Try to reset network connections: Open PowerShell or CMD and run as administrator, copy and paste the following commands by pressing enter at the end of each command line:
netsh winsock reset
netsh int ip reset
netsh advfirewall reset
ipconfig / flushdns
ipconfig / release
ipconfig / renew
Restart the computer at the end of all commands.
If that doesn't fix, go to Network Connections, right click on the wi-fi connection> Run Diagnosis. Post the screenshot of the result.
Try resetting the network again: Settings> Network and Internet> Status, click Network Reset on the right side, follow the instructions.