As long as you have the correct plug that will fit into a socket under the headliner with 3 pins (for plug-n-play installation) and the window bracket fits the (basic) replacement mirror, you are fine. Basic = auto dimming and compass.
If the mirror window bracket does not fit (due to mirror twist on/off bracket), all you need then is to order the right bracket; i.e. P/N H501SSA040 - and attach it to the twist on/off bracket.
As far as I know, Subarus just have 2 types of window mirror brackets; one that twists on/off the rear view mirror and one that slides on/off on above mentioned bracket.
Some older Subarus come with plain "manual" dimming rear view mirrors, without a compass. If you look under the headliner (by removing dome/map light assembly cluster) and find an empty 3 pin socket there - bingo - you can add Subaru auto dimming mirror with compass then. Either P/N H501SAG200 or P/N H501SFJ001.
I have done it many times... not just on Subarus...