here’s a TF headcanon:
The reason some Cybertronian’s visors are restractable and some aren’t is because that the one’s who never/rarely ever have their eyes showing actually have poor eyesight. So basically the visors work as stylish glasses.
And it’s something they usually have to be born with, unless their optic sensors are damaged beyond repair.
Jazz for instance has always been almost completely blind, and the visor does help him see a little bit but his eyesight is still pretty bad. It’s barely noticeable though, because he’s able to rely on his hearing so well, which is part of the reason why he enjoys music so much.