In the US in the early mainstream-cell-phone era (95-05ish), playing with any sort of device in class would get called out if spotted by teachers.
Some of the larger-handed athletes amusingly thought their tiny Nokias were small enough to make it not obvious they were texting/playing Snake on them, but it was pretty easy to spot.
Having it in your backpack if it's not making noise? Sure. Using it? Nah.
In the 1980s it was Sony walkman radios and cassette players kids where getting taken away at school. Though it didn't happen much, I think most kids knew it was a distraction.