a) She convinces the Leader of the Commons to bring a motion to dismiss parliament (under the 2011 Fixed Term Parliaments Act this requires a 2/3rds majority).
b) She convinces the members of the Privy Council to form a National Coalition, and to stand as such for election on a manifesto centred on EU membership.
Alternatively, she finds someone who can command the confidence of the House of Commons across party lines, and gets agreement across party lines (likely through the Privy Council) to support the appointment, and duly appoints them Prime Minister (this is roughly how Churchill became Prime Minister in 1940, with no election held since 1935 and none would be held till 1945). The cross-party Government then formed can then seek a mandate to remain in the EU in a number of ways (such as then falling to an election or a second referendum).
One shouldn't understate the amount of influence the Queen can have, and maintain, if she plays her cards right.
In 1975 in an extreme circumstance the Governor-General (the Queen's representative in Australia) dismissed the sitting Prime Minister and appointed a new one: https://en.wikipedia.org/wiki/1975_Australian_constitutional...
Not sure exactly what might happen here.
That situation would change in a heartbeat if the Queen actually tried to rule.