How can I display a page element based upon security? If I want to hide or show a DOM element, say a button that can show further information because the logged in user is a manager, how can I do that in Drupal 8?  Do I need to create separate pages for each type of user role?

I saw this but wasn't sure if it was the same thing I was asking,

How can I change page elements (menu, blocks, etc) based on a chosen &#39;audience&#39; link?
If you want to make a button only available to users who are admins, put this property in the form element:

'#access' =&gt; \Drupal::currentUser()-&gt;hasPermission('access administration pages'),