I have no doubt that the children growing up with access to the internet (including youtube and twitter) had greater opportunity to be better educated, more exposed to art and culture, and to be better prepared for their life as an adult in the world than the children who grew up without the internet. Those things were made much easier by having access to the internet. I say that as someone who grew up without internet access for many years. I know not having access to the internet we have today as a young child placed limitations on what I could have reasonably attained. That doesn't mean we should set every child lose on the internet without any thought to what they're seeing.
Also, the internet is very much like books, but I'd remind you that libraries and even bookstores offer many other forms of media as well.
Social media, and the internet as we know it, have only been a part of children’s lives for about 15 years, less than a single generation. The idea that it is now an indispensable part of their development, and that depriving them of it is going to harm them us utterly ridiculous. As if every generation before now consists of drooling ape-men that could have been what this current generation of apparent Uber-children will become if only they too had access to TikTok and YouTube.