Hitting studs and not pipes
If the mirror is not over 50 lbs or more you can use picture hooks that are rated for 75 lbs that go only into the drywall.

Drywall will hold it, it is not like the wall vibrates or anything like that to make them loose. Besides the nails are set at an angle so it keeps hanging, not able to slide out.