I imagine it is not difficult to make a phone detector. A phone is sending almost constantly. If a phone has to be in flight mode the whole lesson then there is no reason to bring one
It is extremely hard to make a phone detector that's able to detect only phones in a specific room, considering how far the cellular signals can travel, and how pervasive wifi is for everything