Did you make sure Upmix is enabled ? you need youtube to support 5.1 speakers and it's not usually the case. if you use the upmix it will play on all other speakers.
It also depends on the Browser , so make sure you have Chrome or Firefox or Edge which might work straight away , or might on chrome you need to tweak some settings on the About://flags.