@ashneehs
there are constructions from simple door hinges with threaded rods operated by hand to super expensive motorized star trackers that you align with the earths axis of rotation and they rotate the camera into the opposite direction to cancel earths rotation out.
@stux