If the design of your website is very old and does not properly load on the devices, then you know that's type of site not getting ranking. Due to that reason, you have lost 10 to 30% of traffic and conversion rate. But in very rare cases, google penalized such types of websites. However, you can follow the designing & SEO key factors for improving your website and be safe from any penalization from google.