I really wonder about that. Learning anything requires active participation and motivation. YouTube provides great content, but I'd say it's the easy part. BTW, public libraries existed before youtube.
My personal example, I graduated in maths 20 years ago and spent countless hours solving problems. Nowadays, I'm a youtube addict, I casually watch lots of videos, but I have very little attention span left, and don't build serious knowledge about anything.
But your hypothesis could be assessed based on data. I may be wrong, but I suspect students math proficiency has declined in most western countries.