Straightening a video of a 2D display?

I’m using Blender for its video tracking and video editing features for a small task at work.
Basically we’re working on training software for a small embedded system. This system has a display that runs an animation, but we can’t get the original file so we shot a video of the animation. Problem is, the video wasn’t shot head-on so the display has a noticeable angle \ perspective distortion.
So, I’d like to take this video, which I already stabilized in Blander, and apply a counter-distortion so I end up with a straight video of just the display.
All I could find online is how to do the opposite - take a “flat” video or image and insert into a plane in a video such as a sign or computer display, but again this is not what I need, I want to straighten out a non-straight part of a video.
Is that possible in Blender? thanks!

I would do this in After Effects and export the result to Blender, it might be possible in Blender but it’s super easy in After Effects

After finishing your camera tracking you can refine your solve for Radial Distortion. Also, in this channel you can find some videos for lens distortion and STMaps workflow.