Now you can export a any viewport from your project to HTML. Click the export icon in the upper toolbar, choose the Export as HTML tab and the viewport you want to export.