How to make a custom 3d view cone that mixes orthographic and perspective cameras

I’m trying to make a camera that displays objects the same height no matter the distance, but still changes width relative to distance. Similar to having an orthographic view vertically and a perspective view horizontally. From what I’ve gathered the best way to go about this is to create a custom 3d mesh. Is that correct or is there a more efficient way? Thanks!