You may want to check you are using the latest version of iOS 17.
Eg: Look in Settings > General > Software update to see if an update is available, or if iOS is up-to-date.
NB: If you decide to update, it is wise to back-up your iPhone data first
_________________________________________________________________
Re: "In the gesture part of assistive touch, I created a gesture.
But when using it, after one tap, a circle remains on the screen and it doesn't work anymore."
As your gesture didn’t turn out quite right, you can tap Cancel, then try again.
You can try following Apple's step-by-step method (below) of adding a new gesture.
When you’re satisfied with your gesture, tap Save, then name the gesture.
- Go to Settings > Accessibility > Touch > AssistiveTouch > Create New Gesture.
- Perform your gesture on the recording screen. For example:
Touch and hold your finger in one spot until the recording progress bar reaches halfway, then lift your finger. Be careful not to move your finger while recording, or the gesture will be recorded as a drag.
- Two-finger rotation gesture:
Rotate two fingers on the iPhone screen around a point between them. (You can do this with a single finger or stylus—just create each arc separately, one after the other.)
If you record a sequence of taps or drag gestures, they’re all played back at the same time. For example, using one finger or a stylus to record four separate, sequential taps at four locations on the screen creates a simultaneous four-finger tap.
- If your gesture doesn’t turn out quite right, tap Cancel, then try again.
- When you’re satisfied with your gesture, tap Save, then name the gesture.
To use your custom gesture, tap the AssistiveTouch menu button, tap Custom, then choose the gesture. When the blue circles representing your gesture appear, drag them to where you want to use the gesture, then release.
Above method comes from the article: Use AssistiveTouch on iPhone - Apple Support which also has more info.
_______________________________________________________________________________________________
Re: "I made a new gesture many times and tried it, but it didn't fix it. Only when I turn the phone off and on,
it works for a few minutes and then the same problem occurs again".
Seems you are doing the best you can, and it is great you have tried so hard. Well done for reaching out for help!
Am no expert myself, so if you still need help after trying the above, you may want to contact Accessibility Support for help with using this Assistive Touch feature.
To contact Apple's Accessibility Support Team:
See: How to contact Apple for accessibility support - Apple Support
or
From Apple's Accessibility Support Website you can "Get Support" from the "Start now" link at the bottom of their website (eg: online chat / phone / email etc.) :
Accessibility Support - Official Apple Support
All the best :-)