OSM is just a geographical database. It by itself doesn’t have any user-facing features at all. If there are such features somewhere, they are features of a specific frontend to that database.
I don’t think there’s a way to do what you want directly on openstreetmap.org but you can achieve your goal with https://overpass-turbo.eu/ for example.






















Yes, I mean that is basically what everyone was joking about during the pandemic… “Marty, whatever happens, do not EVER travel to 2020 or 2021”…