I am trying to use sections, to show/hide content on the home page based on whether it is a mobile user or desktop.
Now, the class hide-on-desktop works well on sections as long as the content in the section does not include a shortcode. However, since the content I am trying to display is dynamic and retreived via custom shortcode, the class hide-on-desktop is not working.
If you look at your sites markup you will see that the Tables are displayed outside of the Section.
This happens when the shortcode ‘echoes’ its output. It needs to return a single value or use output buffering to display within the container.