You can mark content to be included in exports but have it hidden from the Confluence page view by using the Scroll only or Scroll only inline macro.
The only difference in how the macros work is that a line break is inserted when the Scroll only macro is used, and no line break is inserted by the Scroll only inline macro.
Once the macro is inserted, you can Edit it to select which Scroll Exporter app(s) specifically includes the content in the export.
Want to ignore content in exports but display it in Confluence?
If you want to ignore content in exports, but still display it in Confluence, you can use the Scroll ignore or Scroll ignore inline macros.