It is often used in blackhat to show a content to Google, and another to the user.
Here are three methods to see if a site is cloacked.
- In the google SERP, display on see the cache
- Use the Google test tool
https://search.google.com/test/mobile-friendly
- Go through the google proxy googleweblight.com
https://googleweblight.com/?lite_url=