I had a similar concern, used a muslin bag and it works perfectly, I tied it with a sanitized rubber band.
I dry hopped with 4 ounces and didn't have a problem, the siphon will be affected by plant material in the tube, not because of the bag. But 2 ounces, you should be good.