When the Content-Security-Policy header has "style-src 'self';" inine style elements like style="display: none" are not honored by browsers, so add CSS to the markup classes and style them display: none