automatically rotates display when switching from gamemode to desktop

Is there a way to stop the OS from changing display rotation whenever I change from gamemode to desktop mode? A bit annoying i have to open the settings everytime i switch between the two. any answers appreciated, thanks :)
Was this page helpful?