Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
The link seems to be a photo.

Considering that 4k YouTube plays ok on my 2013 model, a 2018 model should be fine for YouTube under any condition. You can try a restart and maybe try a different browser. Maybe check Activity Monitor for CPU levels.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.