This question already has an answer here:
I created a scene and set up the camera and everything looks OK in the viewport. After I render the result looks different than expected.
See the images below:
Camera view render in viewport. That's what I want
The result after I hit render.