You are in the wrong space:
https://community.glideapps.com/t/customizing-map-markers-in-new-glide-apps/70540/33?u=himaladin
It works if you want to apply it to all switch components in the app. Just remove the class name inside the selector so it becomes: #page-root .peer:checked ~ div