A new law bans cell phones in classrooms and requires students to learn about the potential harm of social media.