I have a starter plugin which includes the Classic Editor files and an option to use this functionality. This option does not need to be included if the plugin is running in ClassicPress. I am using the following, which should work for quite a while, but is there a better or more sophisticated method?..
$version = get_bloginfo( 'version' );
if ( $version >= 5.0 ) { ... }
Thanks.