searching for an element inside Google Earth returns null

I am trying to copy the contents of an element. However Google Earth does not let me.
Entering document.getElementById() and trying to get anything on the site returns null. This only happens on Google Earth.
Here’s what I’m trying to do:

document.addEventListener("copy", (ev) => {
    navigator.clipboard.writeText(document.getElementById("pointer-coordinates").innerHTML.replace("/°|N|E/g", ""));
});

Even document.getElementsByClass(“body”) returns an empty array. It seems as though Google Earth is somehow blocking it. How could this be?