Rendering problem - only rendering one layer? I am doing the Blender Guru Donut tutorial - in my viewport, if I click on rendered view everything looks fine, but when I go to actually render the image, only part is rendering. Did I click some button by accident that is making this happen, and if so, how do I fix it?

The top is a screen shot of my viewport, the bottom is a render.

Thanks for helping a noob]1
Found the answer - in the outliner I had an object that had the "eye" turned off so that it wasn't visible in the view window, but it was part of another collection that was turned on, so it became visible in the rendering (Donut was peeking through it). The collection needed to be turned off (uncheck box) and the problem stopped. Thanks to Igor Svara for his help.