I have a iPhone 6, my power button still clicks on/off however the power button tends to click whenever it wants?

I have a iPhone 6, my power button still clicks on/off however the power button tends to click whenever it wants Forcing my phone to lock while I'm using it at random, is there a way to completely disable the power button, I already use assistive touch and that did not stop it Fromm locking at random.

Turn it off, then hold the powerbutton and homebutton in at the same time for 15 seconds… Then release the power button but still hold home button in, if no homebutton use the volume down instead with power button… The iphone screen should stay black, if not, retry until stays black, dfu mode, uses the factory bootloader which was shipped with, now connect via syn lead to pc / mac to clean install a fresh system and your problem should have gone… If have problems getting it in dfu mode… Put the sync lead in your iphone, hold the home button down and keeping it down attach to your pc which will open in recovery mode and select restore not update if given the option