The Highway Code says you should slow down, and if necessary stop, if you are dazzled by bright sunlight
Your car will of course have sun blinds that can help and you should use these whenever necessary but driving when having to squint is an obvious potential hazard so take care!