iPads can use GraphNCalc83[1] and Apple Classroom on a teacher iPad/Mac to restrict students to the app[2]. I'm not sure if there's an android equivalent.
I still find using a touch screen much more frustrating than a calculator with physical buttons, but this is a legit alternative.