Cemented hemiarthroplasty is an effective form of treatment for most patients with an intracapsular fracture of the hip. However, it remains unclear whether there are subgroups of patients who may benefit from the alternative operation of a modern uncemented hemiarthroplasty - the aim of this study was to investigate this issue. Knowledge about the heterogeneity of treatment effects is important for surgeons in order to target operations towards specific subgroups who would benefit the most. We used causal forest analysis to compare subgroup- and individual-level treatment effects between cemented and modern uncemented hemiarthroplasty in patients aged > 60 years with an intracapsular fracture of the hip, using data from the World Hip Trauma Evaluation 5 (WHiTE 5) multicentre randomized clinical trial. EuroQol five-dimension index scores were used to measure health-related quality of life at one, four, and 12 months postoperatively. Our analysis revealed a complex landscape of responses to the use of a cemented hemiarthroplasty in the 12 months after surgery. There was heterogeneity of effects with regard to baseline characteristics, including age, pre-injury health status, and lifestyle factors such as alcohol consumption. This heterogeneity was greater at the one-month mark than at subsequent follow-up timepoints, with particular regard to subgroups based on age. However, for all subgroups, the effect estimates for quality of life lay within the confidence intervals derived from the analysis of all patients. The use of a cemented hemiarthroplasty is expected to increase health-related quality of life compared with modern uncemented hemiarthroplasty for all subgroups of patients aged > 60 years with a displaced intracapsular fracture of the hip.