I am currently working on a webpage that contains various html elements with bootstrap classes applied to them.
<div class="col-xs-12 col-lg-4"></div>
My goal is to implement a button that, when clicked, will toggle the viewport/layout changes of these divs on the webpage. Upon clicking the button, I need to be able to instantly see the layout change in real-time, displaying "col-xs-12" for mobile view and "col-lg-4" for laptop view. However, I am unsure which specific CSS or Bootstrap property I should be utilizing for this functionality.
Any guidance or assistance on this matter would be greatly appreciated.
EDIT - Use case - I am providing a platform for users to edit CSS and classes. I aim to include a toggle button so users can visualize how their elements will appear in both laptop and mobile views.