U are throwing another variable in by manually folding them in.
I assumed the "switch" you mentioned in your previous post was the switch to manually fold them in. If that's not it, what switch are you talking about when you said "they will stay folded until u hit the switch"? I wasn't trying to throw another variable in, I was just trying to see if mine does something different.
Using Forscan setting, they are out until u lock then door after getting out. Then if open drivers door and hit lock button before closing drivers door then mirrors stay folded in. Worked this way on '17 and '20.
I'm still not sure I get what you're saying. On mine if I'm in the truck, shut off the engine, open the drivers door, and then press the lock button on that door before closing the it, the mirrors stay out until the door is closed, and then they fold in. If, however, I close the door before locking it, they still stay out until I press the lock button (either the button the handle, the door combo, or the key fob. That's why I said they don't fold in until the door is both locked AND closed. I can lock it without closing it, and they stay out. Conversely, I can close it without locking it, and they stay out.
And then if I unlock the door, open it, and get in again, they stay folded in until I actually close the door. But I never have to press any sort of switch for them to fold out again. This is on a '19, by the way.