The home button on my iPhone seems to work on and off.
It does take me back to the home screen but it feels like there is a loose connection and does not trigger on every press.
Is there a fix to this besides Apple support?
You could take it apart and fix it yourself, however it will void any warranty on the phone. You can view the iFixIt Repair Guide for steps for removing and replacing the Home button. Note that you will have to take apart the majority of the phone to get to the button.
Your best bet would be to go to Apple for a repair or find an authorized repair service shop to do it for you.
Btw my phone is out of the warranty period, so no luck there.
Here is something I found in the forum that can help as well (not as much as a fix than a workaround) - AssistiveTouch, which is baked into iOS. It provides an overlay on the screen for several functions, including the Home button. Credit goes to Bentsai's answer.
There is a trick I've used many times to 'fix' my home button, it only takes a couple of seconds and it works every time. [But, disclaimer, the issues you have may be something different.]
The solution is to insert a charging cable into your iPhone (it doesn't need to connected at the other end, just the bit that goes into the iPhone). Then if you put your finger on the botton of the connector (the solid bit that goes into the iPhone) and pull it towards you.
It would appear that the hardware parts are somehow separating inside the iPhone through repeating use of dock stations / connectors, and this just helps to squeeze the parts back together - albeit it isn't as good as it worked on day 1.
This is commonly caused by a build up of dirt and or grease under the button, thus interfering with the contacts. One resolution is to get some 70%+ alcohol wipes and squeeze some of the liquid into the gap around the button (with the phone off) and give it a good old pressing. Leave it to dry for a few minutes and test. You don't want to go crazy with the amount you put in, but this will sort it out in many cases.