The word that matches this definition is the word irony.
The irony is a literary device, in which the real meaning of a phrase or idea is not directly stated. Instead, the reader or listener needs to analyze the language and situation to find the real meaning.
Here is a clear example: Saying to someone you do not like:
This example shows irony is about one idea or object that has a deeper meaning than it seems, which matches your definition.
Learn more about irony in: https://brainly.com/question/1212130