What makes bubbles toxic?

Bubbles are something we usually associate with being clean. Dishwashing liquid, liquid soaps, shampoos, bubble baths – these are all cleaning products for ourselves and our homes that we like to be sudsy. But what is making those bubbles?