How can I make camera automatically change its location ,so that it would adjust to the models of different size?

Yes I know how to switch or rotate, I just didn’t know how to let the camera always locates at the suitable location.(usually manually tweak it)