I have a guideline in constraint layout like this
guideline.setGuidelinePercent(value: Float)
This is enough to change the guideline percent during runtime.