Thanks for the answer.
I know about the first option, if I can not master the second option, I will return to it.
But the second option is unfortunately too complicated for me.
I have been researching Hype for only three days, and don’t understand where to embed Javascript in the head html, or in the Scene inspector?
I tried the option iPhone XS Max Mobile Breakpoint - #8 by h_classen
I changed so
<script>
function layoutRequest(hypeDocument, element, event) {
if (window.matchMedia("(min-width : 812px)").matches) {
hypeDocument.showLayoutNamed('iPhone_X')
}
}
if("HYPE_eventListeners" in window === false) {
window.HYPE_eventListeners = Array();
}
window.HYPE_eventListeners.push({"type":"HypeLayoutRequest", "callback":layoutRequest});
</script>
TestRes.hype.zip (25.5 KB)
If you show a little pity and patience, I will be very grateful