It is not a ban but a guideline. The guideline says that smartphones should not be used in class unless it has an educational or medical reason. Schools themselves can decide whether they want to allow smartphones in the class or not. That said, apparently there is a huge problem with children using Snapchat, Instagram, TikTok or any other social media, and research has shown that allowing smartphones in class is a disturbance and leads to lower student performance.