title: Can I use javascript to place one element on different places, one for mobile and one for desktop?
body: <p>I am adding an element in the dom using javascript. I have added an  using insertBefore() to place it where I want it on the mobile view. But in desktop it is supposed to be placed on a different space on the website. How can i solve this? </p>
  
  <p>Just using CSS is not an option due to already existing elements that i cant't move.</p>
  
  <pre><code>    var priceWrapper = document.querySelector('.price-info-wrap')
      var mainContainer = document.querySelector('.price-info')
      var addUrgency = document.getElementById('urgency')
      priceWrapper.insertBefore(addUrgency, mainContainer)
  </code></pre>
  
  <p>The code provided is how I have placed "addUrgency" witch is the div I need to put elsewhere on desktop.</p>