I’m building app (PWA) and I have to show a few columns of Data Table when the device is in a vertical position and show all columns when the device is in a horizontal position on an android device (I have to use Screen Orientation API, and it’s not supported on Safari)
Render one div with the few columns, and have a second hidden div with all the columns. When the device is rotated, hide the first div and reveal the second div. Do this with CSS media queries: https://www.w3schools.com/css/css_rwd_mediaqueries.asp
First, I’m trying with this to see how works, I want to change the table background when orientation = landscape but doesn’t work, I try on computer (chrome browser)