Masking and Rendering issue

Hello,

I am trying to mask a movie clip of a phone screen. I have animated a mask and set it up in the compositor, and everything looks good in the preview in all frames. But when i try rendering the animation, the mask won’t animate?

Thanks