What people say"Can you hypnotize me so I stop?" Hypnosis does not reach in and switch a habit off.
What's usually happeningIn hypnosis your attention narrows and outside distractions fade. You stay aware and in charge the whole time. That focus makes it easier to picture a hard situation and practice the thought you want to have in it. The change still comes from what you think, not from the trance.