Move sidebar above content instead of below on mobile

Hi, I have a responsive theme that puts the sidebar below the content when viewed in mobile/tablet. How can I make the sidebar appear above the content? I only want this to happen on some pages, not all. Thanks