Violating structured data quality guidelines can prevent syntactically correct structured data from being displayed as a rich result in Google Search, or possibly cause it to be marked as spam. If you mark up content that is not visible to readers of the page, you can attract a Google manual penalty and would not be eligible for rich results.