How do I add a customizer control dynamically?

I didn’t really used Customizer, but what you need is called „conditional display” (at least this is the term used in ACF & co).

That being said, I found this article that may help you:

https://florianbrinkmann.com/en/3783/conditional-displaying-and-hiding-of-customizer-controls-via-javascript/

Also, this SE topic:

Is it possible to conditionally displaying and hiding of customizer controls for each device preview?