This is a very similar behavior to what others have reported for blog posts (example: https://support.shufflehound.com/forums/topic/blog-post-excerpt/), but this one is specific to portfolio item pages.
Here is how to reproduce it:
Can you please advise on how to fix it? Thank you.
I hope you are well today and thank you for your question.
If the portfolio content only consists of images and not any text then it will display like that on portfolio item pages as there isn’t any content to display there.
Do you want that raw code to hide on portfolio item pages?
If yes then could you please share me the page URL from your site where it is displaying so that i can help you to achieve it?
Thank you for the follow up. The client in the meantime decided to eliminate that page, so we got rid of all paths leading to that page. So I won’t be able to provide you a link this time.
For future reference: what is the nature of your intended fix? Some custom CSS to hide the content or code change?