Name of device with air capsule inside water
It's called a Cartesian diver.
When you squeeze the bottle to increase the pressure, the dropper compresses and becomes more dense. If this increased density exceeds the density of water then the diver will sink.