Detect if view or edit page

I want to have a different view or hide controls based on if its an edit or view page.

The scenario is that I have a builder on the edit to create an form
On the view page I want see the rendered version only

Struggling with how to accomplish this.

Thoughts
Was this page helpful?