gform_disable_css can be used to disable all CSS files from being loaded on the frontend.
This includes styles which handle conditional logic, columns, hidden fields, ready classes, etc.
add_filter( 'gform_disable_css', 'your_function_name' );
Indicates if CSS files are to be loaded by Gravity Forms. Default is false.
Disable loading of CSS files
This example would disable all loading of CSS files for all forms.
add_filter( 'gform_disable_css', '__return_true' );
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
This filter was added in Gravity Forms v2.8.
This filter is located in form_display.php and includes/blocks/class-gf-block-form.php and