To hide the element visually, but keep it in the html, you can use:
[content]
or
[content]
What may go wrong with display:none
? It removes the element completely from the html, so some functionalities may be broken if they need to access something in the hidden element.