Take AE as an example, the first choice is to mask the mask (that is, only see what you want to see), and the camera will follow. Otherwise, why are they all the same shape?
Something simple. AE has plug-ins that you can do. But there must be something wrong. I didn't do it more carefully by hand.