if its an intel graphics chip there is often an icon in the bottom right next to the clock (when not rotated) that allows you to rotate and change resolutions
there is also a shortcut keyboard command that can activate the sideways screen which is how it happens in the first place normally.