In that case, you can use something oily to remove the marshmallow. Apply olive oil or a similar kitchen oil to the affected area and gently rub it in until the marshmallow begins to break down. However, please do it carefully to not damage your hair.