Normally, I would suggest doing that in post, (like in After Effects Pro-Bund ONLY),
using a technique called "Corner-Pinning" in combination with tracking.
There is a SMALL tut in the AE pro-bundle help docs when you do a search for Corner Pinning
Here are some tuts that talk about corner pinning, so make sure to check them all, as they are not specific to your issue, but the idea is the same
https://www.corporatemedianews.com/20...aetracking.htm
https://www.aefreemart.com/tutorials/...oll/index.html
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com