Use your browser to get onto Youtube.
Log in, using the account you want to have logged out.
Then use the 3 dot menu to sign out.
Now clear the data in your Youtube app.
(I also think that you can sign out with the settings in the Youtube app, but I can't say how as I don't use the app.)