Unable to switch the contact layout based on a flag in the leads module during lead conversion to contact.

Unable to switch the contact layout based on a flag in the leads module during lead conversion to contact.

We have a "Lead Type" flag with values X or Y. When X is selected, the contact should be assigned to the X layout, and when Y is selected, it should be assigned to the Y layout.

Is there a way to achieve this without using Deluge?