However, it is not recommended to walk to exercise hip muscles, mainly as follows.
Walking involves driving the gluteus maximus, which is inactive and has limited driving range and little effect. Unless you take an exaggerated stride, even so, it will take a long time to be effective.
Walking exercise is mainly aerobic exercise, mainly to reduce fat, to gain more muscles, and to consider anaerobic exercise supplemented by aerobic exercise.
There is a special tutorial on hip lifting or lower limb exercise, please search for it yourself. I am currently using keep, for reference only.