Hi,
Maybe get the screen position from the mouse and if it reaches near the side position do the rotate
Or have some colliders conencted on the camera on the sides and when triggers do the rotate?
i can't test right now so i am just suggesting some possibilities