You might want to have the iPhone looked at and decide if you want to repair the home button
Here is how to add a Touchscreen Home button on the screen
https://gadgets.ndtv.com/apps/features/how-to-add-touch-screen-home-button-on-iphone-ipad-648588
How to Add Touchscreen Home Button on iPhone, iPad
- Open Settings.
- Go to General > Accessibility
- Scroll down to the section labeled INTERACTION and tap on AssistiveTouch.
- On the next screen, toggle AssistiveTouch to the green On position.
- A white circle with a grey box will appear on screen. Tap this circle to expand it to a big box on screen. The square Home button at the bottom of the box functions exactly like the physical home button - you can use it to single tap, double tap, or long press the home button even if there is a hardware problem. The grey box remains visible and usable in all apps.