A scanner for an endoscope comprising: a scanning mechanism comprising a light transmitter and arranged to move the light transmitter to perform a scan a lens system arranged to optically couple the light transmitter to a target during a scan a first housing which houses at least a first portion of the lens system a second housing which houses at least the fibre scanning mechanism and a bendable joint joining the first and second housings such that in a scanning configuration the bendable joint joins the first and second housings so that optical elements in the first and second housings are aligned at a working separation, the bendable joint arranged to bend in response to insertion forces applied to the scanner during insertion of the scanner and revert to the scanning configuration in the absence of insertion forces.