Not sure how to reproduce this but I'll at least post this for reference sake. In Preferences > Websites > User Agent, I'm unable to remove Youtube on my list.
It's meant to be removed when selecting the '-' button.
Version 1.0.0 (139-rc), WebKit 619.1.11.111.2
Mojave (10.14)