Need help in Noprint Macro

I need help in developing a macro in confluence cloud which hides text from printed output in confluence cloud.
I have managed to develop a text input macro as shown in the screenshot below:


All I want is to set the functionality of hiding the print option after publishing the page and I am calling it as a noprint macro
I tried to search the functionality but could not be able to finf any solution/workaround/option for confluence cloud

Any guidance would be appreciated.
Thanks

“Print” as in not display the macro contents in a PDF export?

I haven’t played with it but there’s an export function from which you could return a blank <div/>: https://developer.atlassian.com/platform/forge/manifest-reference/modules/macro/