If you take the mirror off the car you’ll see a little plate with three screws that hold the ball on that end of the mirror stem. If you tighten those screws it should make the mirror vibrate less and the mirror hold its position better. If you find the screws are already tight, you can remove the little plate and bend it so holds the stem better. Alternatively, if it’s worn you can slide a piece of paper in there to take up the space that’s worn so the plate will grab the stem better.
If it’s just the glass vibrating in the mirror frame you may need a new mirror. The day/night mirrors can have the switching mechanism wear so the glass vibrates in the frame. If you take the mirror apart you may be able to fix that, but they’re not really meant to come apart so it’s kinda fiddly to do that without breaking something.