The mirror that will always produce an upright and diminished image is a convex mirror.
In a convex mirror, regardless of the position of the object, the image formed is always virtual, upright, and smaller than the object.
So the correct choice is:
a convex mirror.