There is a great habit-breaking app called “One Sec.” You configure it with your addicting apps or websites and it uses iOS shortcuts to interrupt you when you open them

Also effective (in my experience) is to use the Accessibility settings to turn down the screen saturation 90%.

A black-and-white phone is far less tempting to use, and quickly becomes tiresome.