I think better minds than ours, with more input into the industry, have thought about this and are still struggling to g
find an answer. The genie is out of the bottle, Pandora's Box has been opened, and universal instant communication for all has been let loose on the world, for good or bad. You can't squeeze that genie back into the bottle, or collect all the woes in creation and stuff them back into Pandora's Box.
A lot of the trash on social media is posted by people who are about 10 years old, either in reality or in their developmental maturity. Winding up adults is one of the pleasures of childhood, and always has been, and how it is done depends on what is available at the time. Tying two doorknobs together with string and then ringing both doorbells used to be one ploy, another was collecting dog poo in a paper bag, puting it on a doorstep and setting fire to the bag, then ringing the doorbell and watching from a safe distance while the houseowner discovered the fire and tried to put it out by stamping on it. The internet has just expanded the possibilities.
What would you suggest to try to keep the equivalent of ten-year-old Mercedes drivers from posting on the Internet, then? The equivalent of a driving test, leading to a licence to post? How would any restriction be implemented. A law is only good if it can be enforced. A parental veto? If parental vetos worked, no-one would ever start to smoke or experiment with sex.