Hello ,
Thank you for posting in the community and this happens if you press the O key as this is the shortcut for the Orthogonal views, also found in the view menu as shown in image below, if you keep pressing the shortcut it will change views until it goes back to Perspective mode.
Kind regards,
Vincent B.