How can I fit a 3D model within the bounding area of an orthographic camera?

I have a 3D model, and I want to display it similarly to the sample image below on mobile devices with different aspect ratios. What should be the right approach to achieve this using an orthographic camera?

Most likely you would want to do this: