Using Classic Outlook on Windows for personal email, calendar, and contact management
Okay, so it looks like a lot of folks are having trouble signing into Yahoo from Outlook because the Agree button isn't working. It's probably a glitch with Yahoo's sign-in thingy in Outlook, messing with the login info.
Here’s a fix that usually does the trick: First, turn off ad blockers or privacy stuff in Microsoft Edge (since Outlook uses it for the sign-in window). Then, sign in to Yahoo on a browser, find Account Security > Manage App Permissions, and nix Outlook and Microsoft there. Next, erase any Yahoo or Office passwords saved on your computer (Control Panel > Credential Manager > Windows Credentials). After that, make a fresh Outlook profile instead of just deleting the account. This kicks off a clean sign-in. If it still whines, get a Yahoo app password and type that in when adding your account to Outlook. That skips the usual sign-in and tends to work.
By the way, do you have antivirus or firewall thingies that might be blocking pop-ups? Also, do you need help making an app password or resetting your profile?