Create a compatibility layout to prevent crashes due to API