You can sign out of your Yahoo Mail account in a web browser by clicking your profile icon, or in the mobile app from the ...
You can log out of your Outlook account on a browser, but those using the desktop and mobile apps will have to use workarounds to sign out.