This
inputLayout.prefixTextView .updateLayoutParams<MarginLayoutParams> { updateMarginsRelative(end = YOUR_VALUE) }
might be an option.