Chicken and egg.
If you are bouncing, it means you haven't trained at that cadence to not bounce. You may be able to drop your cadence to eliminate it, or you could maintain the cadence and train your pedal stroke and core to not bounce.
I ride a single speed, so shifting is not an option. If I want to spin at 130 rpm, I have to train at that and learn to contain the bounce.