Just about all aircraft have a "Glareshield" sole purpose to prevent glare from the instruments. This does not allways help at all attitudes and directions in relation to the sun but does a pretty good job. Other aids such as sun screens on side windows help where the glare shield can not. Instrument lighting also helps and is sometimes automated.