Hey mate. I've painted many mirrors before and you just tape them up.
Then use a razor blade carefully, on a 45deg angle, to trim the edges.
Just a small hint, leave a piece of tape sticking out in the middle (coz it can be difficult to lift the tape up once it's painted over)
Depending on how neatly you trimmed the edges, you may have to clean up the mirror carefully with the blade......