I was in high school in the late 2010s. No cell phones allowed during most of class time, and it was somewhat enforced. I definitely recall students being chewed out for having their phones out in class, but I also recall some students having their phones out with no repercussions.
I'd love for someone from the 10s to chime in, as that seemed the heyday of unchecked social media use.