Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the incorporation by reference in Registration Statement Nos. 333-230039, 333-223379, and 333-220701 on Form S-8 of our reports dated February 28, 2020, relating to the consolidated financial statements of Roku, Inc. and subsidiaries (the “Company”), and the effectiveness of the Company’s internal control over financial reporting, appearing in this Annual Report on Form 10-K for the year ended December 31, 2019.

/s/ DELOITTE & TOUCHE LLP
San Jose, California

February 28, 2020