You can’t right now. This needs to be fixed in wordpress core. Probably this can be temporarily circumvented for a fraction of the problems with a plugin, but it’s much more valuable to invest the time developing something in an actual fix of wordpress.