Hello j c,
Anxiety of separation at sleep time creates your little girl's tantrums.
One indirect way would be to feed her some heavy, rich, high fat dishes late in evening and also give sweetened milk last thing at bedtime. A full stomach is likely to make her more sleepy and forgo the pranks.
More active, vigorous outdoor sports should be encouraged in evening hours.
Reward system during the day time also should be evolved, and frequently reinforced, by appreciating good behavior previous night.
Very difficult to predict - 2 years is a transitional age where there is more awareness but less maturity to listen to and understand to reason.
You should continue what you must - like leaving her with others when it is imperative, and hope that she learns to cope with this reality fast.
Meanwhile your talking to her once or twice nightly when she starts crying, and then leaving her to herself, would be fine.
I strongly recommend you do just let her cry and soothe herself back to sleep, for her long-term adjustment. Not giving her a bed-time bottle would also be a very good idea.