Error when viewing PDF on a SiteGround hosted store

If you are hosted by SiteGround and have issues when viewing PDF, their support team advises the following solution:

WordPress admin Dashboard > SiteGround Optimizer – Frontend Optimization > General section > Disable the “Minify the HTML Output” option.

Contact SiteGround support if you still have issues after making this modification.