On the fly is a phrase used to describe something that is being changed while the process that the change affects is ongoing. If you do something on the fly, you do it quickly, without preparing and without thinking too much about how it should be done.