Difference from Designer preview to actual html page

This view does not load the CSS file required for styling. To fix this, either set up a separate workflow using the NodeJS Server input as described, or enable the ‘Embed all resources’ option in the Create Web Content task. The latter ensures that all CSS styles are included directly in the HTML file.