Hi there
Please try and force restart the iPhone to see if the issues persist. If they persist, please try this
1. Turn Off "Zoom Controller" or Window Zoom
Sometimes the screen magnifier creates an outline or a floating controller box right where you type.
- Open the settings app and go to Accessibility.
- Tap on Zoom.
- If Zoom is on, toggle it Off.
- If you want to keep Zoom on but remove the box, tap Zoom Controller and turn off Show Controller.
2. Disable "Switch Control"
If a black or blue box is jumping around your keyboard and selecting keys automatically, Switch Control is active.
- Go to Settings > Accessibility.
- Scroll down and tap Switch Control.
- Toggle the switch to Off.