Brokers either charge a flat fee, of around 1% of the mortgage value, or a commission based on the size of your loan. The broker must tell you what you're going to pay before you agree to the mortgage.
The cost's illustrated in the 'key facts' document outlining your mortgage repayments, fees and charges.