I am aware of the scripts Microsoft and others have provided to enable the new 'modern' experience/UI in SharePoint Online. When I run the below code, however, the experience does not change. I am testing by visiting the site contents page of the root web.
public static void EnableNewExperience(Web web, bool enableRootCollectionFeature)
{
ClientContext ctx = (ClientContext)web.Context;
Guid siteFeatureId = new Guid("E3540C7D-6BEA-403C-A224-1A12EAFEE4C4");
ctx.Site.Features.Remove(siteFeatureId, true);
ctx.ExecuteQuery();
}