title: I want to display a php code shortcode in JavaScript, how do I do that?
body: <p>This is my code
  <a href="https://i.stack.imgur.com/stM6I.png" rel="nofollow noreferrer">enter image description here</a>
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script&gt;
      let myDiv = document.createElement("div");
      myDiv.classList.add('test');
      let my_var = `&lt;?php echo do_shortcode("[elementor-template id="5078"]"); ?&gt;`;
      myDiv.innerHTML = my_var;
      document.querySelector("#instagram").appendChild(myDiv);
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>