Create an app with the Basic template in ArcGIS Instant Apps within Portal for ArcGIS. Next, add the web map and publish. To embed the web map, click 'Share' and choose 'Copy HTML code'.
Configure the web map in ArcGIS Online. Open the web map in Map Viewer Classic and click Share > Embed in Website > Copy HTML code.