What about a gun?
“What about a gun?”
Your being silly... A cop should confiscate a gun. A teacher should not even try unless there is a threat involved.
In any case, for something like a phone, a student should be given the option of leaving with it or voluntarily turning it over.