You could achieve this by using custom CSS.
Add a custom class to the popup page where you don't want to show the title and close
(for example: popup-no-header).
Then add this to your custom CSS:
.popup-no-header .mx-dialog-header {
display: none;
}
Hope this helps!