AWS dispalying or not displaying conditional elements in a page

Im wondering if it is possible using AWS to conditionaly display parts of a page. For example or device has two modes, In one mode i would like the page to hide some elements and show other elements, and in the other mode hide diffrent elements and show different elements, but there are alot of common elements to both modes. Using the older webserver I would simply edit my files with if() statements. How do i go about doing this using AWS??

Never Mind Figured it out, I missed the RpDynamicDislpay tag in my reading