It is unlikely there is such a term. The twentieth century has produced various theories about readers' responses to literary works and what I have read about them does not seem to suggest that literary theory has come up with a specific term for this phenomenon.
There is the more general term "code", which has many different meanings. Cuddon lists eight meanings, including the following (Cuddon, page 154):
(e) a cipher, (f) a system of words, letters or symbols for the purpose of secrecy or economy in transmission; (…)
Based on this, an author might try to provide (a) a surface meaning that is clear to all readers or viewers and (b) a coded meaning that is only "decoded" by a certain class of readers or viewers. René Girard, for example, suggested that Shakespeare's plays conveyed a surface meaning to the groundlings and a different meaning to the more literate nobility, i.e. the unmasking of mimetic desire and the scapegoat mechanism. However, Girard did not use a specific literary term for this "technique".
One may interpret Girard's suggestion as a special example of a divergence in what Hans Robert Jauss called horizon of expectation (German: Erwartungshorizont). In Jauss's theory, the term refers to "the shared set of assumptions which can be attributed to any given generation of readers" (Cuddon, page 415). Whereas Jauss focuses on different generations, Girard's hypothesis relies on different horizons of expectation within the same generation, namely based on different levels of literacy (not merely the ability to read; the nobility would have been exposed to a greater number of literary and philosophical texts).
Another set of terms from reader-oriented literary theories that could be brought to bear on this question is Wolfgang Iser's distinction between "implied reader" and "actual reader". The actual reader (Cuddon, page 446)
receives mental images while reading; but these images are, inevitably perhaps, modified by the experience and knowledge (and thus other images), which the reader brings to the text.
Jauss does not seem to use a term for the technique of "intentionally impressing different meanings on different audiences".
Another pair of terms that seems relevant is Umberto Eco's distinction between "open" and "closed" texts, which Cuddon discusses in the entry on reader-response theory (page 771):
An "open" text (e.g. Finnegans Wake (…)) requires the reader's close and active collaboration in the creation of meaning; whereas a "closed" text (e.g. whodunit by Agatha Christie, (…)) more or less determines or predetermines a reader's response; (…).
This distinction does not really help us until we can determine whether the different meanings asked about in the question are (a) two meanings that result from the work's openness or (b) two different meanings predetermined by a "closed" text. The term "intentionally" in the question may suggest that the author intended two meanings to be found by different sets of readers. However, the concept of authorial intent has been questioned by literary theory, for example by the New Criticism ("The Intentional Fallacy" by W. K. Wimsatt Jr. and M. C. Beardsley, 1956) and by Roland Barthes ("The Death of the Author", 1967). The author is considered unreliable; may not know what they are doing, resulting in a discrepancy between intention and result; may misremember or misrepresent later on what they intended, etcetera (see also Eagleton, pages 134–135). Based on this, an author who claims he tried to impress two different meanings on two different audiences may be trying to look cleverer than he really is.
It is hard to prove that nobody has ever come up with a term for what is described in the question, but based on what I have read so far about literary theory, it is unlikely to exist. The modern suspicion against authorial intent makes the coinage of such a term rather unlikely.
References
- Cuddon, J. A.: The Penguin Dictionary of Literary Terms and Literary Theory. Third edition. Penguin 1992.
- Eagleton, Terry: How to Read Literature. Yale University Press, 2014.
- Girard, René: A Theatre of Envy: William Shakespeare. Oxford University Press, 1991.