Our '01 also does that on occasion, for no apparent reason...
Before you dig into the mirror itself, I would try moving the mirror select button from left to right, back and forth a couple times, with car on and doing some backing and forward driving motion. Ours always 'comes back to its senses' after that simple procedure.
I keep mirror select button set so right mirror does not dip, when in reverse, and find the mirror dip situ only happens a couple times of year, usually when using my CEO's set of keys, fwiw. These cars have minds of their own, on occasion.
If that doesn't cure it, go to the fix it step.
GL, mD