I'd also say, check the plug on the back on the mirror. My previous truck was giving me same kind of trouble after a windshield replacement. It turned out the installers didn't fully install/seat the plug, it was cocked on an angle so it "felt" tight. Once I unplugged it and then fully plugged it back it, never had trouble again. It's an idea.