OK, a few things here:
.then(response => response.htm())
There is no method
htm() on the response object. You want to use
response.text() as shown in the example above. This line throws a TypeError.
.then( resultText => console.log(resultText) )
You can do this but then it will ruin what you want to do next because console.log doesn’t return the HTML string that you need to set
innerHTML, and thus the next line will merely insert ‘undefined’ into your example element. So get rid of this line completely.
This is not returning the HTML string you fetched but rather
undefined because the variable
resultText is not in scope. But it won’t even get that far because this line will throw an Uncaught ReferenceError. You should get rid of it.
So then we are back to:
.then(response => response.text())
.then( resultText => document.getElementById('example').innerHTML = resultText );
This is the bare minimum that will do what you want. Change the mobile one to do the same thing.