What are the constitutional and legal challenges in state governments banning social media platforms?

States like Andhra Pradesh and Karnataka have attempted to ban social media, but regulation is said to be a central subject. I want to understand the legal and constitutional issues involved in such decisions.