There is no historical evidence that Queen Elizabeth I directly influenced the content, themes, or creation of William Shakespeare's plays and poems.
Elizabeth's reign (1558–1603) shaped the cultural, political, and religious climate that contextualizes Shakespeare's work—issues of succession, gender, authority, and national identity permeate the plays. But this is ambient influence, not direct intervention.
After 1603, King James I became the company's direct patron (renaming them the King's Men). His interests—witchcraft (Macbeth), kingship theory, the divine right of kings—more demonstrably align with specific late plays, though even here, direct "influence" is debated by scholars.
In short: Elizabeth was an enthusiastic audience member, not a creative collaborator.