how do they keep the camera from showing up in a mirror?
The director goes to film school to learn how to do stuff like that.
It’s really simple. They shoot at an angle.
They would have to even if they didn’t have to worry about the camera; If they shot straight on, you’ld see the back of someone’s head, not the reflected face in the mirror.
This has been discussed in this thread