in the old version of Blender there was a command window with options in the lower right hand side where you could edit camera clipping settings. I attempted a youtube tutorial where you press N for the new 4.x blender, and then adjust the “end” values, but it didn’t do anything at all.
That’s a view clipping setting you have adjusted, it only affects 3d viewport view but not camera view. Camera clipping settings are under the menu in properties tab when you select the camera, there should appear an icon shaped as film camera, somewhere below material, object, scene, output etc icons. Under it you can adjust the settings for the camera, including clipping distance.