I have a plane and I want to set the camera’s field of view to be filled by that plane, and if the plane is scaled, shifting position, The camera’s field of view is always filled with this plane.
I think you need to use maths for this. I will assume the plane is directly in front of the camera. You would need to get the sine of half width/height of the plane, divided by the distance to the plane. I think that should give you half the FOV, both vertically and horizontally. You would need to select the smallest FOV to ensure the plane fills the screen.
I am not sure if this is right, but it is a start.