Update dom class to landscape/portrait like previous behavior.