Been there , done it, The later plug has more connections as it caries the rain sensor wires, however this is not part of the mirror so the actual mirror and pcb connections are the same.
What are the sensors on the mirror, and are they necessary.
Reason I ask is that I want to replace it with a hi tech reverse monitor and dashcam.
(not the ones on eBay that clip over the existing mirror).
The sensor on the rear detects the ambient light to activate the auto headlights, there is also a knob to alter the sensitivity. On the front there is a light sensor to detect headlights behind to dim the mirror.