Change tag visibility depending on scope