There are a few secrets to applying wood trim to the outside of a bathroom mirror...
Try and pick a style of trim that has a slight lip to the back edge (usually as deep as the thickness of the mirror) - so that it will fit up against the wall tightly. See below: