Here is what you will want to do.
First go to https://identity.ic0.app/ and authenticate take note of your internet identity/anchor number that you authenticate with and write it down, then confirm you have a recovery phrase showing. If you do, but don’t know what it is, delete it and recreate it and write it down somewhere safe (do not store online obviously) if you already have the recovery phrase showing on that page and know what it is grab it, you will need it. (Might also want to set up additional devices if you only have one but not necessary for what we’re doing here.)
Clear the cache and cookies/browser history of the affected browser (DO NOT do this without having your recovery phrase and anchor identity recorded and available to you or you’ll have no way of reconnecting to it and you will lose everything as far as I’m aware) then just recover your identity by inputting the anchor/identity number followed by seedphrase.
Remember you only get one shot at this so please do not clear the browser until you are certain all is well. Id go so far as to download a new browser and recover on that first before clearing cache and cookies, just to be safe.
But yeah, just clear the cache and it will work but be mindful of the risks in clearing it.