How do you replace the powered driver's side mirror on a 96 Mazda 626?

The question you ask is too involved for a proper answer. You may want to go to a car parts store, or book store, and get a repair manual for your car. They cost about $16.00 Or, go to a Public Library.