Is there an option to display or hide a folium marker?

Is there an option to display or hide a folium marker.

? I have a map where I want to show or hide its markers based on the users’ input. Is this possible?
I managed to do so using st.checkbox, however I want to put it on the map, or in a better looking way.

I figured it out based on: python - Add menu bar on folium map to select or deselect particular object (Marker) - Stack Overflow