A device adapter is used to mount a handheld device, such as a smartphone, to the binocular tube of a microscope, such as a slit lamp. The handheld device has a camera, a device surface on one side, and a camera lens at the one side. The adapter includes a body with an abutment surface, two side grippers and a lower gripper used to secure the device against the abutment surface of the body. The device adapter also includes an adapter assembly including a camera lens opening alignable with a handheld device camera lens so that an image entering the outer end of the ocular tube with integrated optics passes through the ocular tube, through the integrated optic, and through the camera lens opening for passage into the camera lens.