Gamma is different thing, the changes are done to black and white levels. Actually it isn’t YouTube itself, but it’s the web browsers which may or may not touch the levels, in some cases dependend on the grafic card of the end system.
In most cases we must expect a web browser to convert studio swing to full swing levels so in most cases the advice would be to feed web videos with reference black and reference white matching studio swing levels.