I noticed these two things come up at the same time, however I do not adjust the passenger mirror often so not sure when it stopped working.

my dome light no longer comes on when any of the doors are opened, the floor and door lights come on and the dash shows the clock and miles as normal. light switch is in the middle position, to come on when doors open. I can turn the dome light on with the switch still. what gives?

installed s4 mirror caps and noticed before swapping caps that my passenger side mirror does not work anymore, not sure what to look into about that either or if the two are related somehow?
driver side mirror works as normal

im leaning against door switch as all 4 doors are the same, doubtful its a broken wire in driver door but have not looked to rule that out.

could there be problem at the switch itself? I did find one similar post in archives where the switch terminals had failed.

thanks