Restrict Selectable Time Range

Hi, I am using Postgresql-12/TimescaleDB with Grafana. Is it possible to restrict the selectable time range for a dashboard to be no more than 30 days? That way the query always returns a maximum of 30 days of data, whether grouped 15-minute, hourly, daily etc… For example; the user can select as a time range Jan 01 - Jan 30, or May 01 - May 30, but cannot select Jan 01 - Feb 20, or July 01 - Dec 31.