Currently, there is no in-built system to record the virtual class. You can use a screen recorder to record the session.
Below we mentioned some free screen recorder with their link.
Open Broadcaster Software: https://obsproject.com/
Copyright © 2021 Orgamation Technologies, Inc. All rights reserved.