I don’t think you can. This was changed in the Notification Center (swipe down) because hiding notifications there made no sense. It still works the way it used to on the Lock Screen.
In a small but significant change to the way the Notification Center works in the latest iOS 16.2 beta, older notifications are now shown by default...