Sun visors are designed to protect the eyes of the driver and front passenger from dazzling sunlight.
Depending on the direction of the sun's rays, the sun visor can be pivoted to the position shown and additionally pivoted to the side.
see also Removing and installing sun visors.