Age 18-75 years (both inclusive) at the time of signing the informed consent.
Glycated haemoglobin (HbA1c) of 7.0-10.0 percent (%) (53-86 millimoles per mole \[mmol/mol\]) (both inclusive) as assessed by central laboratory at screening.
Willingness to obtain a high weight loss (greater than \[\>\] 25% of weight at baseline).
Uncontrolled and potentially unstable diabetic retinopathy or maculopathy. Pharmacological pupil-dilation is a requirement unless using a digital fundus photography camera specified for non-dilated examination.
Known hypoglycaemic unawareness as indicated by the investigator according to Clarke's Questionnaire.
Clareo Health | A Research Study Comparing How Well Different Doses of the Medicine NNC0662-0419 Lower Blood Sugar in People With Type 2 Diabetes