Beat the cream cheese and margarine in the bowl of a stand mixer.
Slowly add the powdered sugar, scraping down the sides of the bowl occasionally with a spatula. Once all the sugar has been added, mix for at least 12 minutes.
Add the lemon juice and vanilla and briefly mix to incorporate.