While you can't directly force orientation on a web page, there are ways to suggest or block content in portrait mode.
I have created an adaptation based on an existing script.
To implement this in your HTML file, simply add a div element:
<div id="block_land">Turn your device in landscape mode.</div>
Adjust your CSS to cover the entire page:
#block_land{position:absolute; top:0; left:0; text-align:center; background:white; width:100%; height:100%; display:none;}
Next, include some JavaScript to detect the orientation:
function testOrientation() {
document.getElementById('block_land').style.display = (screen.width>screen.height) ? 'none' : 'block';
}
Make sure to test the orientation on both onload and onorientationchange events, possibly within your body tag:
<body onorientationchange="testOrientation();" onload="testOrientation();">
Let me know if this solution proves effective for your needs.