Customer attribute as toggle in frontend

I have created a new customer attribute as yes/no type. In admin it shows as toggle. In frontend it is shown as dropdown. Is there a way to display it as toggle also in frontend’s customer account edit page?