How to display lens icon in variable-based dropdown

Hi, How to display lens icon in user defined variable-based dropdown? I can see lens icon with grafana provided dropdown but not with my dropdown. See the below image for the reference

image

See the below image where it shows the lens icon for grafana provided dropdown

image