The "View in your Space" button activates AR through Scene Viewer on Android or Quick Look on iOS. These experiences are apps outside of the browser and cannot render custom HTML, nor communicate state with the website.