My goal is to create a simple columns layout like the one shown here: https://i.sstatic.net/o18xK.png
However, on smaller screens, I would like Component 2 to be positioned after Component 3:
https://i.sstatic.net/P0bMh.png
Is there a way to modify the following HTML code to achieve this responsive layout?
<div class="row">
<div class="col-lg-8">
<div id="component1"></div>
<div id="component2"></div>
</div>
<div class="col-lg-4">
<div id="component3"></div>
</div>
</div>