Can you please advise on the most effective method for moving an element between divs in responsive design?
This is the current structure of my page:
<div class="container">
<div class="desktop"><h2>Hello, I am displayed on desktop</h2></div>
<div class="mobile"><h2>Hello, I am displayed on mobile</h2></div>
</div>
I have implemented CSS media queries to toggle between displaying the mobile and desktop versions, which is functional. Is this the recommended approach?