There are 3 strict rules - the file size shouldn’t exceed 4 MB. It is recommendable to use the JPG format, and the optimal dimensions are 2560*1440 px.
If you follow these rules, your thumbnail will have good quality and won’t be too large, which will make it suitable for devices of any spec.