The Supreme Court has generally allowed certain limited restrictions on media content targeted towards children. But an outright ban would probably run afoul of the First Amendment.
I expect the vagueness doctrine would also present an obstacle. How could legislators even define social media in a sufficiently precise way? Is email or group chat social media?