The legislation, expected to be introduced before Christmas and potentially implemented in 2027, aims to protect children from online harms and give kids their childhood back.
Starmer said he accepted he was not the best person to lead Labour into the next general election and will remain in office until a successor is selected.