The @support in CSS can be very useful to scan if the current browser has support for a certain feature.
@supports (display: grid) {div {display: grid;}}
@supports (display: grid) {
div {
display: grid;
}