Hide sharing buttons on the upper right of an embedded calendar via iframe - security violation

Dear all,

sorry, I am pretty new to next cloud.

Nextcloud allows to share/embed a certain calendar via an iframe tag. It even provides a code snippet. Using this snippet leads to an security violation and error in the browser.

[Error] Refused to display
in a frame because it set ‘X-Frame-Options‘ to ‘SAMEORIGIN‘.

Is there a way to disable the sharing buttons? Our IT will not alter the X-Frame-Options.

Thanks, Andreas