Direct soil can never be kept in the cage, for this you should use coco fiber, coconut fiber, sphagnum moss or jute cloth.
Read this also- Butterfly Garden Ideas: 10×10 balcony and thousands of colors, make ‘Butterfly Paradise’ at home like this
Note- Coconut fiber is best for making cage planter. It absorbs water well and does not spoil quickly. You can install it in both landscape and vertical.