That seems to be a glitch then. I assume if you select a different option like compact it still does not change.
Try selecting compact again, close down settings, then shutdown Safari. Open Settings, and change it back to Top, and re-open Safari see if that works.
If it still won't change, then try restarting the iPhone.
click here ➜ Restart your iPhone - Apple Support
If it still won't change, then you may need to set up a Genius Bar appointment at an Apple Store or authorized service provider to have it checked out.
click here ➜ iPhone Repair and Service - Apple Support