How to remove component that is empty on dynamic page?

Yes - I was hoping you had found a solution to delete the element so that the code isn’t shown. The collapse and hide functions are nice from a User Experience perspective, but the source code is still there. That is my issue.