Change camera ortographic size to fit the content

Hi,

I have an orthographic camera and I need to change automatically the size of it accordingly with the content, because this content is dynamically generated and sometimes the content don’t fit the view.

someone can help me? how I can change the size of camera automatically?

Is there a document where I can look?

thanks!

Yes, there are many documents where you can look: