Inclusion Criteria:  Type 2 diabetes mellitus diagnosed according to WHO criteria < 5 years from randomization: Fasting plasma glucose > 7 mmol/L at two timepoints. OR HbA1c ≥ 48 mmol/mol twice or in combination with fasting plasma glucose > 7 mmo/L once. OR Non-fasting plasma glucose ≥ 11.1 mmol/L at one timepoint in combination with symptoms of hyperglycemia. Access to a digital ID-card to access the digital system Access to a computer, tablet or smart phone Sufficient knowledge of written and spoken Swedish to understand the information given in the digital system.  Exclusion Criteria:  Treatment with Insulin Other co-morbidities limiting the use of the digital system according to the diabetes nurse judgement. E.g. dementia or severe psychiatric disease. Other forms of diabetes mellitus than type 2 diabetes.