How to change Main Camera size and position via code?

take a look at this page it probably has what u need.

Camera.main.orthographicSize is what I was looking for…