You may need to update your custom theme, especially if it uses deprecated features. Drupal 10 uses Twig 2, so some changes in templates might be necessary.