On both my iPad and my iPhone, when I mark a folder from Dropbox or any other cloud service as a “Favorite”, it shows up in my favorite list in the Files app, but if I switch apps or close the files app, when I reopen it, the folder disappears from the favorites list.