Not sure how this is related to the Avast Forum - but you don’t give much in the way of information.
What Windows Version, What Update version/build number, etc. ?
I’m using Windows 10 as far as I’m aware up to date and I have no problem connecting to youtube, just been watching some clips.