Different elements shown on preview and export

This post (and the multiple linked ones) comes to mind: Can I configure my document (e.g. draft/release version, color theme) when creating a PDF without modifying the Typst file directly?