This depends on the definition of pensionable salary you’re using to calculate the contributions, and whether this includes bonuses. However, you must include bonuses if your definition of pensionable salary is either total earnings or qualifying earnings.
More…
For more information, see https://www.thepensionsregulator.gov.uk/en/document-library/automatic-enrolment-detailed-guidance/4-pension-schemes-under-the-employer-duties