Object not showing correctly on camera or view but it renders
Maybe you have accidentally deactivated something in the Object Types Visibility settings in the left 3D Viewport, for example Mesh or Text or anything else which applies to your text object. In this case it won't be displayed in the viewport but renders normal.