Experiment with various approaches, like the mighty "8-8 rule" (no gadget before breakfast and after dinner) or creating tech-free blocks throughout the day.
Here is a great hack. Go to your Accessibility settings and switch on the black-and-white mode. The vibrant hues fade to grayscale, making your phone less appealing.