how do I render the objects visible in the viewport only ie. only the objects with the open eye 👁 in the object outliner. Thank you
By default only the eye icon to hide the object in the viewport is shown in the outliner, but you can add other icons including one to prevent the object being rendered. Click on the Filter icon above the outliner then on the camera icon in the menu that appears. Hover over each icon for a description of what it does.
You would have to move the unwanted rendered objects to a collection. Select objects >>> m >>> 'move to new collection'. There is a box left of the archive. Uncheck the box for it not to show in render. Check the box for it to show in the render. This could be useful for storing backup models in case anything goes wrong. Or properly organizing your objects. The eye does not affect the render, only the box does.