Frankly this isn't an internet behavior though hers is enabled by it (and steps should be taken to address that by her). People have been doing this to their partners since at least the advent of painless credit cards and the debt associated with it if not before with things like store credit.
She needs to commit to no more shopping apps, closing that account once you make as many returns and re-sales of bought goods as you can (and limiting her own access to it during that time), work hard on understanding the difference between "needs" and "wants" and budgeting only a limited amount for "wants" and sticking to that as part of self-discipline.
At the very least /she/ not you needs to make the effort to save the marriage and fix her problems. You can lead her to counseling but she needs to really be proactive and if it's a situation where you're dragging her around trying to fix her and she isn't putting in the effort well you should recognize that and act accordingly as she has to want to acknowledge, show remorse, make amends, and change. You can be there for her but don't allow her to turn this into a pity party for her.
I disagree characterizing this as the same as drug addiction because it's not. It's poor impulse control, poor financial literacy and some of it might stem from other mental health problems but it's not an addiction anymore than lots of sex, masturbation, or porn use would be despite what self-flagellating Christians may say. It's a feel good behavior that is not an addiction which she ran away with against any financial sense and in that respect it's not that different from a partner who cheated and said they just lost control of their feelings because it's the same pleading of "forgive me for being irresponsible, selfish, and not thinking or exercising impulse control that most people beyond their teenage years have". In both cases it's about self-regulation and making choices including self denial and thinking through consequences for yourself and others rather than going with the flow of whatever is easiest or feels most fun in the moment and then hiding it. And like cheating the fact she went behind your back, betrayed your trust makes this a big problem for the relationship.