The OSM map doesn’t encode this information. You need to look at the tools that you are using to render an image from the map.
If you are using the openstreetmap.org, that is a combination of OSM run tools that create bitmap tiles, and leaflet.js, that creates the slippy map in the browser. You should probably be looking for support channels for leaflet.
Also note that the bitmap tiles are not provided for general end user use. They are only there as an aid to mapping, and for proof of concept applications. If you intend to go into production, you will need to either install your own tool chain to create map tiles, or use some server that is intended for end user use.