Steps to reproduce:
create page with unknown macro (e.g. by using the storage format editor)
create viewport theme that overrides that macro (by convention or configuration)
view the page in a viewport with that theme
Disabled macro modules of Scroll Viewport or Scroll Runtime for Confluence can also produce this effect.
Remove the unknown macro from the page.