Normal toggle switches don't fit flush in metal electrical box cover
Those ears snap off
Those are called &quot;plaster ears&quot; and can be broken off using a pair of pliers.  Snapping them off will let you fit the new switch into the existing box.