What about this idea: flip the script. Students must learn the subject OUTside of class: teacher provides video lectures for those that want to use them, but any source is open game -- YouTube, AI, you name it.
Then class time is reserved exclusively for doing the assignments. No phones or computers allowed.
Then class time is reserved exclusively for doing the assignments. No phones or computers allowed.