Thank you for the confirmation. Let's confirm if you have a corrupted profile.
Create a new Windows local user account.
Log in and test browsing.
Press Win + I on your keyboard.
Go to Accounts - Family & other users (Windows 11)
Click Add account under Other users.
When asked to sign in with a Microsoft account, click “I don’t have this person’s sign-in information”.
Select “Add a user without a Microsoft account”.
Enter a username (for example: TestUser) and set a password if you want.
After creating it, click the new account - Change account type - set it to Administrator
Press Win + L, then choose Switch user and log into the new account.
Open a browser there and check if the internet works.
Please let me know how it goes.