If you want answers it is always helpful to include the make of the vehicle. Obviously we are just stabbing in the dark but with a little more info like the glass moving inside the casing and make and model will get you an answer quicker. I did learn about the hex screw fix for my Dodge which I will try on my own vehicle so I'm kinda glad OP was so ambiguous.
Well I haven't made any headway on the mirrors. Tried what was suggested but could not find any tork screws as mentioned. Couldn't find any man. name either.
If you can find it, I would consider Loctite 222, "Purple", which is a low strength threadlocker. Barring that, Loctite 242, "blue" can be used, though it can be harder to get screws off. Threadlockers will solve the problem the right way. Just make sure not to get the "red" stuff unless you want to drill the screws out the next time a repair is needed.
IF your mirrors are the same as mine (96 Roadtrek on 95 Dodge chassis), remove the cover screw on the bottom of mirror base and slide cover up to view the mounting base. You may have to turn the mirror inwards for this to slide up.
There are 4 #27 torx bolts that hold the swivel part of the mirror to the base. These may be loose so tighten them up. They also may be seized and have to be freed up to tighten. Sometime there has been some wear in the shaft and tightening still does not cure the problem. One person I talked to, removed the bolts and put some "removable lok-tite" on the shaft, reinstalled the bolts and adjusted his mirror before the lok-tite set up. Claims it solved his issue.